<?php

/*
 * This file is part of SoftSite.
 *
 * (c) 2012 Steve Tredinnick
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * Index.php - Main entry point of the application
 *
 * @package softsite
 * @author  Steve Tredinnick <steve.tredinnick@gmail.com>
 */


/**
 * Entry point for the application used to prevent direct script access throughout the application.
 */
DEFINE('IN_APP',true);

/**
 * Sets the debug mode of the application
 */
DEFINE('DEBUG_MODE', 1);

/**
 * Site URl used with all relative links and available in all templates.
 */
DEFINE('SITE_URL',"http://localhost/projects/softsite");

//include the applications autoloaders.
include_once('autoloader.php');

//create a new loader instance and pass all of the url values to the class.
$loader = new Classes\Loader($_GET);

//create and execute the created controller.
$controller = $loader->CreateController(true);
$controller->ExecuteAction();
